import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/word/find',
    method: 'get',
    params: { ...data }
  })
}

export function saveOrUpdate(data) {
  return request({
    url: '/word/sentence/saveOrUpdate',
    method: 'post',
    data
  })
}

export function getMoreExSentence(data) {
  return request({
    url: '/subject/sentence/findMoreByWord/' + data.name,
    method: 'get',
    params: { ...data }
  })
}

export function findExSentence(data) {
  return request({
    url: '/word/sentence/findExSentence/' + data.id,
    method: 'get',
    params: { ...data }
  })
}